<?php

class ccl_controller extends CI_Controller
{
	// Template view to use
	public $template = 'template_intranet';

	// We declare this variable here to prevent warnings later on
	public $data = array(	'main_content'=>'',
							'extra'=>'',
							'error'=>'',
							'autocomplete'=>array()
							);

	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
		
		// If URL contains a specific template to use, then use it
		if ($this->input->get('template'))
			$this->template=$this->input->get('template');
    }
	
	protected function setThisAsPreviousURL( )
	{

		$this->session->set_userdata('prev_url', current_url());
	}
}

?>